package com.test.nnooolwdeaer.util_wooden.analytics_wooden.bean_wooden

import com.test.nnooolwdeaer.activity_fragment_wooden.base_wooden.BaseApplication_wooden
import com.test.nnooolwdeaer.constant_wooden.Constant_wooden
import com.test.nnooolwdeaer.util_wooden.analytics_wooden.util_wooden.AnalyticsUtil_wooden
import com.test.nnooolwdeaer.util_wooden.helper_wooden.UserInfoHelper_wooden

open class ParamBase_wooden(
    /** token */
    var token: String = "",
    /** userId */
    var userId: String = "",
    /** androidId */
    var androidId: String = "",
    /** advertId */
    var advertId: String = "",
    /** version */
    var version: String = "",
    /** product */
    var product: String = "",
    /** clientType */
    var clientType: String = "",
    /** aduid */
    var aduid: String = "",
    /** aduidPath */
    var aduidPath: String = "",
    /** 是否限制广告id，1是 0否 */
    var isLimitAdTrackingEnabled: String = "",
    /** 接口版本号 */
    var apiVersion: String = "v3"
) {
    init {
        this.token = UserInfoHelper_wooden.getInstance_wooden().token_wooden
        this.userId = UserInfoHelper_wooden.getInstance_wooden().userId_wooden
        this.androidId = AnalyticsUtil_wooden.getAndroidId()
        this.advertId = AnalyticsUtil_wooden.getAdId()
        this.isLimitAdTrackingEnabled = AnalyticsUtil_wooden.getAdEnabled().toString()
        this.aduid = AnalyticsUtil_wooden.getAdId()
        this.aduidPath = AnalyticsUtil_wooden.getAndroidId()
        this.version = BaseApplication_wooden.getApplication().versionCodeStr()
        this.product = Constant_wooden.PRODUCT_wooden
        this.clientType = "ANDROID"
    }
}